using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;

namespace NorthStar.Passenger
{
    [Activity(Label = "Your request is processing")]
    public class NewBookingProcessingActivity : Activity
    {
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            SetContentView(Resource.Layout.NewBookingProcessingLayout);
            var refLabel = FindViewById<TextView>(Resource.Id.NewBookingProcessingRefNumberLabel);
            refLabel.Text = Intent.GetStringExtra("refNumber");
            Button continueBtn = FindViewById<Button>(Resource.Id.NewBookingProcessingContinueBtn);
            continueBtn.Click += (sender, e) =>
                                     {
                                         Intent a = new Intent(this, typeof (HomeActivity));
                                         a.AddFlags(ActivityFlags.ClearTop);

                                         StartActivity(a);
                                     };
        }

      
    }
}